-
-
Notifications
You must be signed in to change notification settings - Fork 195
BIRMINGHAM | ITP-MAY-25|Emin Akturk | MODULE-STRUCTURING #617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
// 4. const pounds = paddedPenceNumberString.substring(0, paddedPenceNumberString.length - 2): This line takes out the pounds part of the string. | ||
|
||
// 5. const pence = paddedPenceNumberString.substring(paddedPenceNumberString.length - 2).padEnd(2, "0"): This line takes out pence part and pads it to 2 characters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we expect this program to work as intended for any valid penceString
if we deleted .padEnd(2, "0")
from the code?
In other words, do we really need .padEnd(2, "0")
in this script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also just answer the question here.
|
…e professional one.
Hello CJ! Thank you for the review. I have fixed every error you mentioned. Also, I have fixed Pr template as you wished and ticked the checkboxes. Thank you. |
Changes look good. Leaving responses directly in the comment threads makes tracking the discussion easier. You can try the approach in future PRs. Here is a simplified version of best practices ChatGPT suggested for responding to inline comments in a pull request:
|
Learners, PR Template
Self checklist
Changelist
I have commited new changes as CJ requested and fixed the related problems.